package erlwitch.gui;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;

import erlwitch.ErlwitchPlugin;

public class PhysicalView extends JScrollPane {

	private static final long serialVersionUID = 1L;
	private JPanel innerPanel;
	private JTree fileTree;
	
	public PhysicalView() {
		innerPanel = new JPanel(new BorderLayout());
		fileTree = ErlwitchPlugin.getProject().getFileTree();
		if (fileTree != null) innerPanel.add(fileTree);
		this.add(innerPanel);
		this.getViewport().setView(innerPanel);
	}
}
